<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>接送火车包车管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/rentproduct/tRentgroup/trainList">接送火车包车列表</a></li>
		<shiro:hasPermission name="rentproduct:tRentgroup:edit">
			<li>
				<a href="${ctx}/rentproduct/tRentgroup/trainForm">接送火车包车添加</a>
			</li>
		</shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="tRentgroup" action="${ctx}/rentproduct/tRentgroup/trainList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<div>
			<label>选择线路：</label>
			<select id="line" name="tLine.lineid" class="input-large">
				<option value="">请选择</option>
				<c:forEach items="${lineList }" var="line">
					<option value="${line.lineid }" ${tRentgroup.tLine.lineid == line.lineid?"selected":"" }>${line.linename }</option>
				</c:forEach>
			</select>
			<label>审核结果：</label>
			<form:select path="auditstatus" class="input-large">
				<option value="">请选择</option>
				<form:options items="${fns:getDictList('auditstatus')}"
						itemLabel="label" itemValue="value" htmlEscape="false" />
			</form:select>
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
		</div>
	</form:form>
	<sys:message content="${message}"/>
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>产品名称</th>
				<th>线路名称</th>
				<th>审核结果</th>
				<shiro:hasPermission name="rentproduct:tRentgroup:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tRentgroup">
			<tr>
				<td>${tRentgroup.productname}</td>
				<td>${tRentgroup.tLine.linename }</td>
				<td>
					${tRentgroup.auditstatus == '1'?'审核通过':''}
					${tRentgroup.auditstatus == '2'?'审核不通过':''}
					${tRentgroup.auditstatus == '3'?'待审核':''}
					${tRentgroup.auditstatus == '9'?'已停用':''}
				</td>
					<td>
						<a href="${ctx}/rentproduct/tRentgroup/trainFormView?rentgrpid=${tRentgroup.rentgrpid}&&viewtype=deal">查看</a>
						<shiro:hasPermission name="rentproduct:tRentgroup:edit">
							<c:if test="${tRentgroup.auditstatus == 3 || tRentgroup.auditstatus == 2}">
								<a href="${ctx}/rentproduct/tRentgroup/trainForm?rentgrpid=${tRentgroup.rentgrpid}">修改</a>
							</c:if>
						</shiro:hasPermission>
						<shiro:hasPermission name="rentproduct:tRentgroupAudit:view">
							<c:if test="${tRentgroup.auditstatus == 2}">
								<a href="${ctx}/rentproduct/tRentgroupAudit/list?rentgroup.rentgrpid=${tRentgroup.rentgrpid}&&renttype=${tRentgroup.renttype}">审核意见</a>
							</c:if>
						</shiro:hasPermission>
						<shiro:hasPermission name="rentproduct:tRentgroup:delete">
							<a href="${ctx}/rentproduct/tRentgroup/delete?rentgrpid=${tRentgroup.rentgrpid}" onclick="return confirmx('确认要删除该旅游包车吗？', this.href)">删除</a>
						</shiro:hasPermission>
					</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>